package com.situ.springboot.dao;

import com.situ.springboot.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface Studao {
      @Select("select * from student")
      public List<Student> queryall();
      @Select("select * from student where id=#{value}")
      public Student queryallByid(int id);
      @Update("update student set name=?,age=?,birthday=? where id=#{value}")
    public void update(Student student);
}